
from django.conf.urls.defaults import *
from django.conf import settings
from django.views.static import serve


urlpatterns = patterns('python.magazynDanych.views',
    # Example:
    # (r'^python/', include('python.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
    #(r'^accounts/', include('python.accounts.urls')),
    #(r'^accounts/', include('registration.urls')),
    # Uncomment the next line to enable the admin:
    #(r'^admin/', include(admin.site.urls)),
    (r'^fm/',include('python.fileman.urls')),

)

if settings.DEBUG:
 _media_url = settings.MEDIA_URL
if _media_url.startswith('/'):
 _media_url = _media_url[1:]

urlpatterns += patterns('',(r'^%s(?P<path>.*)$' % _media_url,serve,{'document_root': settings.MEDIA_ROOT}))
del(_media_url, serve)

